<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/all.css">
    <title>博客-留言</title>
</head>

<body ng-app="myApp" ng-controller="Ctrol">
    <nav class="left">
        <ul>
            <li>
                <a href="" class="aimg"><img src="" alt=""><br>
                    <span style="color:gray"></span></a>
            </li>
            <li class="active"><a href="index.html">首页</a></li>
            <li class="active"><a href="data.html">存档</a></li>
            <li class="active"><a href="ele.html">标签</a></li>
            <li class="active">
                <a href="" class="fa"></a>
            </li>
            <li class="active">
                <a href="" class="fa"></a>
            </li>
            <li class="active">
                <a href="" class="fa"></a>
            </li>
            <li><input type="text" placeholder="SEARCH" id="search"></li>
        </ul>
    </nav>
    <section>
        <div>
            <h1>{{title}}</h1>
            <p>作者：<span class="red">{{petname}}</span>&#X3000;|&#X3000;日期：<span>{{time | date:"yyyy-MM-dd"}}</span>&#X3000;|&#X3000;标签：<span class="color">{{ele1}}</span>&#X3000;<span class="color">{{ele2}}</span>&#X3000;<span class="color">{{ele3}}</span>                </p>
            <p>{{content}}</p>
            <p>阅读：<span>{{count1}}</span>&#X3000;|&#X3000;评论：<span>{{count2}}</span></p>
            <br>
            <br>
            <br>
        </div>

        <div class="answer" ng-repeat="x in answers">
            <p><span class="red">{{x.petname}}</span> 回复于 <span>{{x.time | date:"yyyy-MM-dd"}}</span></p>
            <p>{{x.content}}</p>
        </div>
        <form action="" class="form">
            <label for="petname"><strong>用户 ：</strong></label>
            <input type="text" name="petname" required pattern="^[0-9a-zA-Z\u4e00-\u9fa5]{2,16}$" id="petname">
            <br>
            <label for="email"><strong>邮箱 ： </strong></label>
            <input type="text" id="email" name="email" required>
            <br>
            <label for="email"><strong>网址 ： </strong></label>
            <input type="text" id="email" name="url" required>
            <br>
            <textarea name="content" cols="100" rows="10"></textarea><br>
            <input type="submit" value="留言">
        </form>

    </section>
    <script src="libs/angular.js"></script>
    <script src="libs/jquery.js"></script>
    <script src="libs/jquery.cookie.js"></script>
    <script src="scripts/answer.js"></script>
</body>

</html>